{% extends "web/vipBase.html" %}

{% block myright %}
        <!-- 右侧内容展示 -->
        <div class="right-content f-fr col-md-8 col-xs-12 col-sm-12">
            <form id="edit-profile" action="{% url 'vip_update' %}" class="form-horizontal" method="post">
                {% csrf_token %}
                {% if info %}
                    <div class="tip-box">
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                        <i class="glyphicon glyphicon-exclamation-sign"></i>
                        <span class="tip-font">{{info}}</span>
                        <span aria-hidden="true" class="cha">&times;</span>
                        </button>
                        </div>
                {% endif %}
                <fieldset>
                    <legend></legend>
                    <div class="control-group">
                        <label class="control-label" for="input01">账号：</label>
                        <div class="controls">
                            <input type="text" name="username" class="input-xlarge" id="input01" value="{{ user.username }}" disabled/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="input01">真实姓名：</label>
                        <div class="controls">
                            <input type="text" name="name" class="input-xlarge" id="input01" value="{{ user.name }}"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="input01">性别：</label>
                        <div class="controls">
                            <input type="radio" name="sex" class="input-xlarge" id="input01" value="1" {% if user.sex == 1 %}checked{% endif %}/> 男
                            <input type="radio" name="sex" class="input-xlarge" id="input01" value="0" {% if user.sex == 0 %}checked{% endif %}/> 女
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="input01">地址：</label>
                        <div class="controls">
                            <input type="text" name="address" class="input-xlarge" id="input01" value="{{ user.address }}"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="input01">邮编：</label>
                        <div class="controls">
                            <input type="text" name="code" class="input-xlarge" id="input01" value="{{ user.code }}"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="input01">电话：</label>
                        <div class="controls">
                            <input type="text" name="phone" class="input-xlarge" id="input01" value="{{ user.phone }}"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="input01">email邮箱：</label>
                        <div class="controls">
                            <input type="text" name="email" class="input-xlarge" id="input01" value="{{ user.email }}"/>
                        </div>
                    </div>
                    <div class="form-actions">
                        <button type="submit" class="btn btn-primary">保存</button>
                        <button type="reset" class="btn">重置</button>
                    </div>
                </fieldset>
            </form>
        </div>
{% endblock %}